package com.itheima.tlias84.controller;

import com.itheima.tlias84.annotaion.ReportLog;
import com.itheima.tlias84.dto.ReportLogDTO;
import com.itheima.tlias84.po.ReportLogParam;
import com.itheima.tlias84.servrce.ReportLogService;
import com.itheima.tlias84.utils.ResultUtil;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Locale;

@RestController
@Slf4j
public class ReportLogController {
    @Resource
    ReportLogService reportLogService;

    @GetMapping("log/page")
    ResultUtil selectLogs(ReportLogParam param){
        log.info("{}",param);
        ResultUtil resultUtil = reportLogService.selectLogs(param);
        return resultUtil;
    }

}
